package com.li.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.li.domain.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    List<Role> listRole(@Param("role") Role role,@Param("indexPage") Integer indexPage,@Param("limit") Integer limit);

    Integer listRoleCount(@Param("role") Role role);

    Role editRoleAndDeptIdAndMenuId(Integer roleId);
}